package com.toKnow.model.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Source {
    private Integer id;
    private String title;
    private Integer authorId;
    private String authorName;
    private String avatar;
    private Date publishDate;
    private String file;
    private Boolean isCharged;
    private Double price;
    private Integer buyNumber;
    private Integer downloadNumber;
    private Integer likeNumber;
    private Integer collectNumber;
    private Integer commentNumber;
    private String description;
    private String cover;
    private String digest;
    private String sourceName;

    private List<Type> typeList=new ArrayList<>();
    private List<Tag> tagList=new ArrayList<>();

    @Override
    public String toString() {
        return "Source{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", authorId=" + authorId +
            ", authorName='" + authorName + '\'' +
            ", avatar='" + avatar + '\'' +
            ", publishDate=" + publishDate +
            ", file='" + file + '\'' +
            ", isCharged=" + isCharged +
            ", price=" + price +
            ", buyNumber=" + buyNumber +
            ", downloadNumber=" + downloadNumber +
            ", likeNumber=" + likeNumber +
            ", collectNumber=" + collectNumber +
            ", commentNumber=" + commentNumber +
            ", description='" + description + '\'' +
            ", cover='" + cover + '\'' +
            ", digest='" + digest + '\'' +
            ", sourceName='" + sourceName + '\'' +
            ", typeList=" + typeList +
            ", tagList=" + tagList +
            '}';
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<Type> getTypeList() {
        return typeList;
    }

    public void setTypeList(List<Type> typeList) {
        this.typeList = typeList;
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Boolean getCharged() {
        return isCharged;
    }

    public void setCharged(Boolean charged) {
        isCharged = charged;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(Integer buyNumber) {
        this.buyNumber = buyNumber;
    }

    public Integer getDownloadNumber() {
        return downloadNumber;
    }

    public void setDownloadNumber(Integer downloadNumber) {
        this.downloadNumber = downloadNumber;
    }

    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Integer getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Integer collectNumber) {
        this.collectNumber = collectNumber;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public Source() {
    }

    public Source(Integer id, String title, Integer authorId, String authorName, Date publishDate, String file, Boolean isCharged, Double price, Integer buyNumber, Integer downloadNumber, Integer likeNumber, Integer collectNumber, Integer commentNumber, String description, String cover, String digest, String sourceName) {
        this.id = id;
        this.title = title;
        this.authorId = authorId;
        this.authorName = authorName;
        this.publishDate = publishDate;
        this.file = file;
        this.isCharged = isCharged;
        this.price = price;
        this.buyNumber = buyNumber;
        this.downloadNumber = downloadNumber;
        this.likeNumber = likeNumber;
        this.collectNumber = collectNumber;
        this.commentNumber = commentNumber;
        this.description = description;
        this.cover = cover;
        this.digest = digest;
        this.sourceName = sourceName;
    }
}
